<%@ page import="com.model.Project" %>
<%@ page import="com.model.Teacher" %>
<%@ page import="com.model.Student" %><%--
  Created by IntelliJ IDEA.
  User: chaiyuan
  Date: 2017/5/8
  Time: 0:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar bar1"></span>
                <span class="icon-bar bar2"></span>
                <span class="icon-bar bar3"></span>
            </button>
            <a class="navbar-brand" href="#">查看成绩</a>
        </div>
        <div class="collapse navbar-collapse">

            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="ti-user"></i>

                        <p>您好！${sessionScope.user.name}</p>
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="#">修改信息</a></li>
                        <li><a href="#">退出登录 </a></li>

                    </ul>
                </li>

            </ul>

        </div>
    </div>
</nav>


<div class="content">
    <div class="container-fluid">
        <div class="row">

            <div class="col-lg-8 col-md-7">
                <div class="card">
                    <div class="header">
                        <h4 class="title">题目</h4>
                    </div>
                    <div class="content">

                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label>题目名称</label>
                                    <p><%=((Project)request.getAttribute("project")).getStr("name")%></p>
                                </div>
                            </div>
                        </div>



                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label>题目介绍</label>
                                    <p><%=((Project)request.getAttribute("project")).getStr("introduce")%></p>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label>题目导师</label>
                                    <p><%=((Teacher)request.getAttribute("teacher")).getStr("name")%></p>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label>成绩</label>
                                    <p><% if(((Student)request.getSession().getAttribute("user")).getDouble("grade")!= 0.0){%>

                                        ${sessionScope.user.grade}
                                        <%}else{%>
                                        未提交
                                        <%}%>
                                    </p>
                                </div>
                            </div>
                        </div>

                        <div class="clearfix"></div>

                    </div>
                </div>
            </div>


        </div>
    </div>
</div>
</body>
</html>
